<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>
            内部人员操作统计
            <button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;"><i class="glyphicon glyphicon-share-alt"></i> 返 回</button>
        </h2>
    </div>
    <form action="" method="post" class="form">
        <div class="form-item form-group">
            <label class="item-label">开始日期</label>
            <div class="controls">
                <input type="text" class="text input-small form-control time" name="start" value="{$start}" placeholder="开始日期">
            </div>
        </div>
        <div class="form-item form-group">
            <label class="item-label">结束日期<span class="check-tips"> 结束日期为空时，查询当天数据</span></label>
            <div class="controls">
                <input type="text" class="text input-small form-control time" name="end" value="{$end}" placeholder="结束日期">
            </div>
        </div>
        <div class="form-item form-group form-action">
            <button class="btn submit-btn btn-success btn-block" id="submit" type="submit" target-form="form">提交</button>
        </div>
    </form>
    <div class="tab-content">
        <div class="data-table table-striped">
            <table class="table table-bordered">
            <thead>
                <tr>
                    <th class="">姓名</th>
                    <th class="">id</th>
                    <th class="">昵称</th>
                    <th class="">点赞</th>
                    <th class="">评论</th>
                </tr>
            </thead>
            <tbody>
                <volist name="result" id="p">
                <tr>
                    <td>{$p.name}</td>
                    <td>{$p.id}</td>
                    <td>{$p.nickname}</td>
                    <td>{$p.like}</td>
                    <td>{$p.comment}</td>
                </tr>
                </volist>
                <tr>
                    <td>合计</td>
                    <td></td>
                    <td></td>
                    <td>{$total.like}</td>
                    <td>{$total.comment}</td>
                </tr>
            </tbody>
            </table>
        </div>
    </div>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Team/index')}');
        $(function(){
            $('.time').datetimepicker({
                format: 'yyyy-mm-dd',
                language:"zh-CN",
                minView:2,
                autoclose:true
            });
        });
    </script>
</block>
